#include "mode_light_effect_config.h"
u8 effect_last_enum;
LIGHT_EFFECT_T light_effect_config;

LIGHT_EFFECT_MODE get_light_effect_enum()
{
	return light_effect_config.light_effect_ssp;
}

void set_light_effect_enum(LIGHT_EFFECT_MODE num)
{
	light_effect_config.light_effect_ssp = num;
}

LIGHT_EFFECT_MODE get_light_effect_last_enum()
{
	return effect_last_enum;
}

void set_light_effect_last_enum(LIGHT_EFFECT_MODE num)
{
	effect_last_enum = num;
}

void set_light_wait(u8 wait)
{
	light_effect_config.wait =wait;
}

u8 get_light_wait()
{
	return light_effect_config.wait;
}

u8 get_light_len()
{
	return light_effect_config.len;
}

u8 *get_light_buf()
{
    return light_effect_config.buf;
}


//用于快速赋值 调用灯带库函数
void set_light_effect_config(u8 light_effect_ssp,u8 wait,u8 len,u8 *buf)
{
	light_effect_config.light_effect_ssp = light_effect_ssp;
	light_effect_config.wait =wait;
	light_effect_config.len =len;
	memcpy(light_effect_config.buf,buf,45);
}
